<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Document</title>
</head>
<body>
    
    <script>

        var num1 = prompt("请输入第一个数：");
        var num2 = prompt("请输入第二个数：");
        
        alert("最终的结果为:" + (num1*1 + num2*1) );

    </script>

</body>
</html>